<template>
  <div class="container">
    <div class="container-top">
      <div class="container-top-top">
        <img src="//s0.meituan.net/bs/fe-web-meituan/fa5f0f0/img/logo.png" alt="注册">
        <div class="container-top-top-right">
          <span>已有美团账号？</span>
          <div @click="jumpLogin">登陆</div>
        </div>
      </div>
    </div>
    <div class="container-content">
      <div class="font-container">
        <span class="font">找回登录密码</span>
      </div>
      <div class="content">
        <ul>
          <li :class="{highlight: steps === 'stepOne'}">1.确认账号</li>
          <li :class="{highlight: steps === 'stepTwo'}">2.安全校验</li>
          <li :class="{highlight: steps === 'stepThree'}">3.设置密码</li>
          <li :class="{highlight: steps === 'stepFour'}">4.完成</li>
        </ul>
      </div>
      <div class="main-content">
        <router-view></router-view>
      </div>
      <div class="container-footer">
        <div class="container-footer-top">
          <span>关于美团</span>
          <span class="line"></span>
        </div>
        <div class="container-footer-top">
          <span>加入我们</span>
          <span class="line"></span>
        </div>
        <div class="container-footer-top">
          <span>商家入驻</span>
          <span class="line"></span>
        </div>
        <div class="container-footer-top">
          <span>帮助中心</span>
          <span class="line"></span>
        </div>
        <div class="container-footer-top">
          <span>美团手机版</span>
        </div>
      </div>
      <div class="container-common-footer">
        ©&nbsp;&nbsp;美团团购网&nbsp;&nbsp;meituan.com&nbsp;&nbsp;京ICP证070791号&nbsp;&nbsp;京公网安备11010502025545号
      </div>
    </div>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  name: 'FindPassword',
  data() {
    return {
      /** 用来控制高亮 */
      light: ''
    }
  },
  computed: {
    ...mapState(['steps', 'username'])
  },
  methods: {
    jumpLogin() {
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  &-top {
    width: 100%;
    height: 80px;
    border-bottom: 1.5px solid #D8D8D8;
      &-top {
      width: 1199px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 100%;
      margin: 0 auto;
      img {
        width: 110px;
        height: 50px;
      }
      &-right {
        display: flex;
        span {
          font-size: 16px;
          color: #666;
          margin-top: 10px;
        }
        div {
          cursor: pointer;
          margin-left: 15px;
          color: #222;
          background-image: linear-gradient(135deg,#FFD000 0,#FFBD00 100%);
          border-width: 0;
          box-shadow: 0 2px 1px rgba(191,105,0,.15);
          background-size: 100%;
          padding: 7px 12px;
        }
      }
    } 
  }
  &-content {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    .font-container {
      padding-top: 30px;
      display: flex;
      flex-direction: column;
      width: 1199px;
      margin-bottom: 19px;
      border-bottom: 2px solid #DDD;
      color: #333;
      font-size: 18px;
      margin: 19px auto;
      text-align: left;
      .font {
        display: inline-block;
        border-bottom: 2px solid #333;
        padding: 12px 0;
        margin-bottom: -2px;
        width: 108px;
      }
    }
    .content {
      display: flex;
      flex-direction: column;
      ul {
        display: flex;
        li {
          background: #dedede;
          display: inline-block;
          width: 298.5px;
          font-size: 14px;
          line-height: 30px;
          text-align: center;
          color: #666;
          margin-right: 2px;
        }
        .highlight {
          color: #222222;
          background: linear-gradient(135deg,#FFD000 0,#FFBD00 100%);
        }
      }
    }
    .main-content {
      border: 1px solid #DDD;
      padding: 67px 0 57.5px;
      background: #FFF;
      margin-bottom: 60px;
      width: 1199px;
      height: 330px;
      margin-top: 20px;
      box-sizing: border-box;
      font-size: 16px;
      display: flex;
    }
  }
  &-footer {
    display: flex;
    width: 100%;
    font-size: 12px;
    justify-content: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    &-top {
      display: flex;
      align-content: center;
      color: #999;
      padding: 20px 0;
      .line {
        width: 1px;
        height: 18px;
        background:  #eee;
        display: inline-block;
        margin: 0 30px;
      }
    }
  }
  &-common-footer {
    width: 100%;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: center;
  }
}
</style>